package com.ruoyi.quartz.service.impl;

import com.ruoyi.quartz.domain.BaseBanner;
import com.ruoyi.quartz.mapper.BaseBannerMapper;
import com.ruoyi.quartz.service.IBaseBannerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseBannerServiceImpl implements IBaseBannerService {

    @Resource
    private BaseBannerMapper baseBannerMapper;

    @Override
    public List<BaseBanner> selectAll(BaseBanner baseBanner) {
        return baseBannerMapper.selectAll(baseBanner);
    }

    @Override
    public int addBanner(BaseBanner baseBanner) {
        return baseBannerMapper.addBanner(baseBanner);
    }

    @Override
    public int updateBanner(BaseBanner baseBanner) {
        return baseBannerMapper.updateBanner(baseBanner);
    }

    @Override
    public int deleteBannerByIds(Integer[] ids) {
        return baseBannerMapper.deleteBannerByIds(ids);
    }

    @Override
    public BaseBanner selectBannerById(Integer id) {
        return baseBannerMapper.selectBannerById(id);
    }
}
